<? if (!$this->session->userdata('logged_in')) redirect('auth/login'); ?>
<? if ($this->session->userdata('type') != 2) redirect('noaccess'); ?>
<center>
<h1> Diagnóza </h1>
</center>
<table align="center" width="400">
<tr><td>
<h2>Úpravy</h2>
<?
echo form_open('diagnoza/'.$pacient);
echo "<p>Diagnóza: ".form_input('diagnoza');
echo '<font color="red" size="1">*</font></p><p>';
echo form_submit('submit', 'Zmeň')."</p>";
echo form_close();
echo validation_errors();
?>
</td></tr>
</table>